package com.patters.abstractfactory;

public class FactoryC implements AbstractFactory {

	@Override
	public AbstractProduct createProduct(String name) {
		if(name.equals("ProductA")){
			return new ProductA();
		}
		else{
			return null;
		}
	}

	@Override
	public AbstractCar createCar(String name){
		if(name.equals("CarB")){
			return new CarB();
		}
		else{
			return null;
		}
	}
	
}
